from gameServer import gameServer
from eventServer import eventServer
from particleEffect import ParticleEffect

class ParticleServer:
    def __init__(self):
        eventServer.register("makeParticleEffect",self.makeParticleEffect)
        
    def makeParticleEffect(self, cmd, args):
        print "makeParticleEffect"
        effect = gameServer.addObject(gameServer.makeObjectName("particles"),ParticleEffect())
        effect.vars.update(args)

particleServer = ParticleServer()
